//package com.hzit.order.customer;
//
//import com.rabbitmq.client.Channel;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import  com.hzit.order.config.RabbitMqConfig;
//
//import java.io.IOException;
//
///**
// * 死信消费者
// */
//@Component
//public class DeadLetterCustmore {
//
//
//    @RabbitListener(queues = RabbitMqConfig.DEAD_LETTER_QUEUEA_NAME)
//    public void receiveA(Message message, Channel channel) throws IOException {
//        System.out.println("收到死信消息A：" + new String(message.getBody()));
//        channel.basicAck(message.getMessageProperties().getDeliveryTag(), false);
//    }
//
//    @RabbitListener(queues = RabbitMqConfig.DEAD_LETTER_QUEUEB_NAME)
//    public void receiveB(Message message, Channel channel) throws IOException {
//        System.out.println("收到死信消息B：" + new String(message.getBody()));
//        channel.basicAck(message.getMessageProperties().getDeliveryTag(), false);
//    }
//}
